package com.ailanyin.modules.flowable.task;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

/**
 * 任务监听器示例
 *
 * @author ailanyin
 * @version 1.0
 * @since 2023/1/3 0003 上午 9:49
 */
public class TestTask implements TaskListener {


    @Override
    public void notify(DelegateTask delegateTask) {

        System.out.println("delegateTask.getAssignee() = " + delegateTask.getAssignee());
        System.out.println("delegateTask.getFormKey() = " + delegateTask.getFormKey());
        System.out.println("delegateTask.getEventName() = " + delegateTask.getEventName());
        System.out.println("delegateTask.getProcessInstanceId() = " + delegateTask.getProcessInstanceId());
        System.out.println("delegateTask.getId() = " + delegateTask.getId());
    }
}
